<?php

namespace app\admin\validate;

use think\Validate;

class SysNotice extends Validate
{
    protected $rule = [
        'notice_title'=> 'require',
        'notice_type'=> ["require","in"=>"1,2"],
        'status'=>["require","in"=>"0,1"]
    ];

    protected $message = [
        'notice_title'=> '标题名称必须',
        'notice_type.require'=>'类型必须',
        'notice_type.in'=>'类型数值错误',
        'status.require'=>'状态必须',
        'status.in'=>'状态数值错误',
    ];
}
